
export enum YunioDataType {
  text = 100,
  form_data = 101,
  json_data = 102,
  xml_data = 103,
  binnary = 203,
}
const path_splitchar = '.';
export class YunioData {

  datatype: YunioDataType;
  constructor(_type: YunioDataType) {
    this.datatype = _type;
  }
  public static NewJson(): YunioData {
    return new YunioData(YunioDataType.json_data);
  }
  public static NewXML(): YunioData {
    return new YunioData(YunioDataType.xml_data);
  }
  public static NewFormdata(): YunioData {
    return new YunioData(YunioDataType.form_data);
  }

  public SetText(path: string, text: string) {
    switch (this.datatype) {
      case YunioDataType.json_data:

        break;
      case YunioDataType.form_data:

        break;
      case YunioDataType.xml_data:

        break;
    }
  }

}